home *** CD-ROM | disk | FTP | other *** search
- /* version 1.0
- */
-
- #ifndef RTRACKERBASE_H
- #define RTRACKERBASE_H
-
-
- #include <exec/libraries.h>
- #include <exec/types.h>
- #include <exec/tasks.h>
- #include <dos/dos.h>
- #include <intuition/intuition.h>
-
- /* file chained list
- */
-
-
- typedef struct {
- void * nextNode ; /* noeud suivant */
- BPTR file ; /* BPTR sur le fichier ouvert */
- char * filename ; /* nom du fichier */
- struct Task * otask ; /* tache */
- } nodeF;
-
- /* lib chained lib
- */
-
- typedef struct {
- void * nextNode ;
- struct Library * ptrLib ;
- struct Task * otask ;
- } nodeL;
-
-
-
- #define PHEADER 0
- #define PDATA 1
- /* memory allocation
- */
- typedef struct {
- void * nextNode ; /* ptr sur le noeud suivant (0 si dernier) */
- char * ptrBloc ; /* ptr sur le bloc */
- ULONG size ; /* taille allouer */
- struct Task * otask ;
- } nodeM;
- /* pooled allocation
- */
- typedef struct {
- void * nextNode ; /* ptr sur le noeud suivant (0 si dernier) */
- void * ptrBloc ; /* ptr sur le bloc */
- ULONG size ; /* taille allouer */
- ULONG type ; /* PHEADER ou PDATA */
- struct Task * otask ;
- } nodeP;
-
- #define GLISTNODE 0
- #define GADGETNODE 1
-
- typedef struct {
- void * nextNode ; /* noeud suivant */
- struct Gadget * ptrGad ;
- ULONG type ; /* GLISTNODE | GADGETNODE */
- struct Task * otask ; /* tache */
- } nodeG;
-
-
- /* not used for instance
- */
- #define MSGPORT 1
- #define REQUEST 2
-
- typedef struct {
- void * nextNode ;
- ULONG type ;
- void * ptrDat ;
- struct Task * otask ;
- } nodeE;
-
-
-
-
- /* base of the lib
- */
- struct RTrackerBase
- {
- struct Library exb_LibNode;
- APTR exb_SegList;
- struct Library * exb_SysBase;
- struct Library * exb_IntuitionBase;
- struct Library * exb_DosBase;
- struct Library * exb_GadToolsBase ;
- nodeM * nodem ;
- nodeL * nodel ;
- nodeF * nodef ;
- nodeP * nodep ;
- nodeG * nodeg ;
- nodeE * nodee ;
- void * ptrPool ;
- };
-
- #endif
-
-